﻿using B.S.BaseData.ErrorCode;
using MediatR;

namespace B.S.BaseData.Write.API.Command.LeaveCommand
{
    public class UpdLeaveCommand:IRequest<APIResult<int>>
    {
        public int Id { get; set; }
        /// <summary>
        /// 申请人id
        /// </summary>
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string LeaveName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public string LeaveType { get; set; }
        /// <summary>
        /// 请假开始时间
        /// </summary>
        public DateTime LeaveStartTime { get; set; }
        /// <summary>
        /// 请假结束时间
        /// </summary>
        public DateTime LeaveEndTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int LeaveHours { get; set; }
        /// <summary>
        /// 报到时间
        /// </summary>
        public DateTime LeaveReportTime { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string LeaveReason { get; set; }
        /// <summary>
        /// 领导人名字
        /// </summary>
        public string LeaderName { get; set; }
        /// <summary>
        /// 领导人的id
        /// </summary>
        public string LeaderIds { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int ApprovalStatus { get; set; }
        /// <summary>
        /// 审批状态名称
        /// </summary>
        public string ApprovalStatusName { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUser { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
